package com.basic.system.domain.bo;

import com.basic.system.dao.model.SysManagement;
import com.basic.system.domain.SystemFile;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysMgmtBo extends SysManagement {
    // 分页查询参数
    private Integer pageNum = 1;        // 当前页
    private Integer pageSize = 15;       // 页记录数
    //一对多多的一方
    private List<SystemFile> systemFiles;
    /** 排序参数 */
    private Integer sortParam;
    /** 分组参数 */
    private Integer groupParam;

    private Long[] ids;
    /** 是否倒序 */
    private boolean isDesc = true;
    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
}
